package com.mindao.app.dzl.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.io.File;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.mindao.app.common.spring.controller.BaseBaseController;
import com.mindao.app.lgc.model.Student;

/**
/* 版权所有： 广州敏道科技有限公司
/*
/* 功能描述：
/*
/* 创 建 人：李国才
/* 创建时间：2016年7月12日 下午4:05:23 	
 **/
@Controller
@RequestMapping("/dzl/Shows")
public class Shows extends BaseBaseController{
	@RequestMapping(method=RequestMethod.GET)
	public String shows(HttpServletRequest request, HttpServletResponse response, HttpSession session, Model rhs){
		File file = new File("D://");
		
		String[] str = file.list();
		String filenamelist="";
		for (int i = 0; i < str.length; i++) {
			filenamelist=filenamelist+"D:/"+str[i]+"<br>";
		}
		rhs.addAttribute("filelist", filenamelist);
		String rtns= super.rtnDefault(request, response, session, rhs);
		System.out.println(rtns);
		return rtns;
	}
		
	
	
}
